﻿using System;

namespace Heroius.NeuTabDiffPeriods
{
    public class Record
    {
        public Record(RecordCollection collection, string[] values){
            Parent = collection;
            Values = values;
        }

        RecordCollection Parent;
        string[] Values;

        public string this[string key] { get { return Values[Array.IndexOf(Parent.PropNames, key)]; } }
        public string this[int idx] { get { return Values[idx]; } }
    }
}
